From: Paul Eggert Date: Thu, 27 Feb 2025 18:57:19 +0000 (-0800) Subject: Fix fns-tests-collate-strings failure with musl X-Git-Tag: archive/raspbian/1%30.2+1-2+rpi1^2~2^2~24^2~260 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=62b3d3136fae8830d63f69143b09e99b5173c537;p=emacs.git Fix fns-tests-collate-strings failure with musl * test/src/fns-tests.el (fns-tests-collate-strings): Don’t assume "en_XY.UTF-8", or any particular string, is an invalid locale, as they all seem to be valid in musl. Instead, simply test that a non-string is invalid. (Bug#76550) --- diff --git a/test/src/fns-tests.el b/test/src/fns-tests.el index 9e134c24e05..2ca67f14539 100644 --- a/test/src/fns-tests.el +++ b/test/src/fns-tests.el @@ -277,7 +277,7 @@ (should (string-collate-equalp "xyzzy" "XYZZY" nil t)) ;; Locale must be valid. - (should-error (string-collate-equalp "xyzzy" "xyzzy" "en_XY.UTF-8"))) + (should-error (string-collate-equalp "xyzzy" "xyzzy" 'not-a-locale))) ;; There must be a check for valid codepoints. (Check not implemented yet) ; (should-error